<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions 
 * @package    Socialengineaddon
 * @copyright  Copyright 2009-2010 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: Socialengineaddons.php (var) 2010-11-18 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */

class Socialengineaddon_Model_DbTable_Socialengineaddons extends Engine_Db_Table {
	protected $_name = 'socialengineaddons';
	protected $_rowClass = 'Socialengineaddon_Model_Socialengineaddon';
	
	public function getModules() {
		$tableName = $this->info ( 'name' );
		$select = $this->select ()->from ( $tableName, array ('module_name' ) );
		$modArray = $select->query ()->fetchAll ();
		return $modArray;
	}
	
	public function modActivate($modName) {
		$this->update ( array ("is_activate" => 1 ), array ('module_name =?' => $modName ) );
	}
}